import request from "@/config/utils/request";

// 查询用户信息
export function getUserInfo(url, data) {
  return request({
    url,
    method: "POST",
    data
  });
}

// 查询填报单位
export function getReportInOrgData(data) {
  return request({
    url: "/apis/smp/basic/listUserPartJobComInfo",
    method: "POST",
    data
  });
}

// 查询出库单编号
export function listPageForeignExwarehouse(data) {
  return request({
    url: "/apis/smp/smpexwarehouse/listPageForeignExwarehouse",
    method: "POST",
    data
  });
}

// 选择出库单编号
export function getExwarehouse(data) {
  return request({
    url: "/apis/smp/smpexwarehouse/getExwarehouse",
    method: "POST",
    data
  });
}

// 新增
export function save(data) {
  return request({
    url: "/apis/smp/exwarehousewriteoff/save",
    method: "POST",
    data
  });
}

// 保存并提交
export function submit(data) {
  return request({
    url: "/apis/smp/exwarehousewriteoff/submit",
    method: "POST",
    data
  });
}

// 保存并提交
export function edit(data) {
  return request({
    url: "/apis/smp/exwarehousewriteoff/edit",
    method: "POST",
    data
  });
}

// 详情
export function getExwarehouseWriteOff(data) {
  return request({
    url: "/apis/smp/exwarehousewriteoff/getExwarehouseWriteOff",
    method: "POST",
    data
  });
}

// 冲销列表数据
export function listPageExwarehouseWriteOff(data) {
  return request({
    url: "/apis/smp/exwarehousewriteoff/listPageExwarehouseWriteOff",
    method: "POST",
    data
  });
}

// list刪除
export function removeExwarehouseWriteOff(data) {
  return request({
    url: "/apis/smp/exwarehousewriteoff/removeExwarehouseWriteOff",
    method: "POST",
    data
  });
}

// list 撤回
export function recallExwarehouseWriteOff(data) {
  return request({
    url: "/apis/smp/exwarehousewriteoff/recallExwarehouseWriteOff",
    method: "POST",
    data
  });
}

